﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Collections.Generic;

    public class Dcms_GuestBookBLL
    {
        private IDcms_GuestBookDAL gbOp = Dcms.DALFactory.DALFactory.CreateDcms_GuestBook();

        public Dcms_GuestBookModel AddModel(Dcms_GuestBookModel model)
        {
            return this.gbOp.AddModel(model);
        }

        public bool DeleteAllCheck(string AllID)
        {
            return this.gbOp.DeleteAllCheck(AllID);
        }

        public void DeleteModelByID(int ID)
        {
            this.gbOp.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.gbOp.GetDataCount(SqlStr);
        }

        public IList<Dcms_GuestBookModel> GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.gbOp.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_GuestBookModel GetModelByID(int ID)
        {
            return this.gbOp.GetModelByID(ID);
        }

        public Dcms_GuestBookModel GetNewModelByCatID(int CatID)
        {
            return this.gbOp.GetNewModelByCatID(CatID);
        }

        public Dcms_GuestBookModel Update(Dcms_GuestBookModel model)
        {
            return this.gbOp.Update(model);
        }

        public bool UpdateState(string AllID, int StateValue)
        {
            return this.gbOp.UpdateState(AllID, StateValue);
        }
    }
}

